prepare("SELECT * FROM user WHERE user_id = 2 ")) { $sql->execute(); $sql->bind_result($user_id,$username,$email,$password,$avatar, $about_short, $about_me, $about_blog, $FB, $TW); while ($sql->fetch()) { echo "

$about_short

$about_me

$about_blog

$username

$FB

NAJNOWSZE WPISY

"; } $sql->close(); } else die( "Błąd w zapytaniu SQL! Sprawdź kod SQL w PhpMyAdmin." ); $trash = ''; if ($sql = $mysqli->prepare("SELECT * FROM post ORDER BY data_dodania")) { $sql->execute(); $sql->bind_result($post_id,$trash,$title,$description,$main,$image,$date,$mod_date); while ($sql->fetch()) { echo " "; } $sql->close(); } else die( "Błąd w zapytaniu SQL! Sprawdź kod SQL w PhpMyAdmin." ); $mysqli->close(); ?>